<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
	//价格格式验证
	function moneycheck(){
		$("#moneytip").html("");
		var money = $.trim($("#money").val());
		if(isNaN(money)){
			$("#moneytip").html("价格格式不正确");
			return false;
		}else{
			return true;
		}
	}
</script>
</head>
<body>
<div>
	<form action="updateItems.action" method="post" onclick="return moneycheck();">
		<input type="hidden" name="id" value="${Items.id}"><br>
		商品名称:<input type="text" name="name" value="${Items.name}"><br>
		商品价格:<input type="text" name="price" id="money" value="${Items.price}"><span id="moneytip"></span><br>
		商品图片:<input type="text" name="pic" value="${Items.pic}"><br>
		商品描述:<input type="text" name="detail" value="${Items.detail}"><br>
		<br>
		<input type="submit" value="修改">&nbsp;<input type="reset">
	</form>
</div>
<a href="itemsList.jsp">返回</a>
</body>
</html>